package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UsersMapper {
    @Select("SELECT * FROM t_user WHERE telephone = #{telephone}")
    User findByTelephone(String telephone);

    @Insert("INSERT INTO t_user (telephone, password) VALUES (#{telephone}, #{password})")
    void insertUser(User user);
}
